//
//  LRXHeadTitleView.m
//  路人侠
//
//  Created by zhangxulong on 4/7/16.
//  Copyright © 2016 zhangxulong. All rights reserved.
//

#import "LRXHeadTitleView.h"

@implementation LRXHeadTitleView


- (instancetype)initHeadTitleView:(NSString *)title
{
    if (self = [super init]) {
        UILabel * titleLabel = [[UILabel alloc]init];
        titleLabel.text = title;
        titleLabel.textColor = [UIColor colorWithRed:253.0 green:253.0 blue:253.0];
        titleLabel.font = [UIFont systemFontOfSize:35 * hScale];
        [titleLabel sizeToFit];
        self.frame = titleLabel.frame;
        [self addSubview:titleLabel];
    }
    return self;
}
+ (instancetype)headTitleView:(NSString *)title
{
    return [[LRXHeadTitleView alloc]initHeadTitleView:title];
}

@end
